﻿Ext.application({
    name: 'passport',
    appFolder: 'app',
    controllers: [
	'passport.controller.LoginController'
    ],

    launch: function() {
       this.showLoginForm();
    }, 
    constructor: function(config) {
        this.callParent(arguments);
        this.initConfig(config);
    },
    showLoginForm: function() {
    	var form = Ext.create('passport.login.LoginForm', {});
	    var win = Ext.create('Ext.window.Window', {
	        title: 'Login Here.',
	        layout: 'fit',
	        plain: true,
	        items: form,
	        closable: false,
	        style: 
	        {
			padding: "10 10 10 10",
	        	width: 500,
		        height:300,
		        minWidth: 300,
		        minHeight: 200,
	        }
	    });
	
	    win.show();		
    }
});
